<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <#include "/common/resource.ftl">
    <script language="javascript" type="text/javascript" src="${params.contextPath}/common/My97DatePicker/WdatePicker.js"></script>
    <title>操作日志</title>
</head>
<body>
<div class="ui-operation">
    <div class="ui-buttons" style="height: 28px;">
        
        <div class="ui-searchs" style="float: left;">
            <div class="value"><input type="text" name="searchInput" value="" placeholder="功能模块、资源名称、操作人" style="width: 180px;"/></div>
            <input type="button" value="搜索" class="layui-btn layui-btn-danger search-button"/>
        </div>
    </div>
</div>
<div class="ui-content" style="padding-left: 10px;padding-right:10px;">
    <table id="datagrid" options="url:'${params.contextPath}/web/operationLog/list.json',params:'getSearchParams'">
        <thead>
			<tr>
				<th data-options="field:'operateTypeStr',width:60">操作类型</th>
            	<th data-options="field:'operateObject',width:80">操作对象</th>
            	<th data-options="field:'tableName',width:100">业务表</th>
            	<th data-options="field:'functionName',width:80">功能模块</th>
            	<th data-options="field:'resourceName',width:80">资源名称</th>
            	<th data-options="field:'userName',width:60">操作人</th>
                <th data-options="field:'resourceUrl',width:150,align:'left'">请求地址</th>
                <th data-options="field:'terminalId',width:80,align:'left'">客户端ip</th>
                <th data-options="field:'operateTimeStr',width:120,align:'left'">操作时间</th>
			</tr>
        </thead>
    </table>
</div>
<script>
var getSearchParams = function(){
    return {
        searchInput:$("input[name='searchInput']").val() || ""
    };
}
</script>
</body>
</html>